



if __name__ == '__main__':
    fenshu = []
    for i in range(7):
        fenshu.append(input(f"第{i+1}位裁判打分:"))
    fenshu.sort()
    fenshu.pop(0)
    fenshu.pop(5)
    sum=0
    for i in range(len(fenshu)):
        sum=sum+float(fenshu[i])
    aver=sum/len(fenshu)
    print("选手的平均分数为%.2f"%aver)